package com.example.druid.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @Description TODO
 * @date 2021/5/26 11:12
 * @Author liuzhihui
 * @Version 1.0
 */
@Data
@TableName("sys_order")
public class SysOrder {

    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 逻辑删除
     */
    @TableLogic
    private Integer isDeleted;

    private String orderNo;

    private Integer payStatus;

    private Integer closeStatus;

    private Integer refundStatus;

    private Integer orderStatus;

    private String channel;

    private Integer receipt;

    private String subject;

    private String userInfo;

    private Integer subjectType;

    private String appId;

    private Integer deliveryStatus;

    private Integer deliveryWay;

    private Integer payWay;

    private Long orderAmount;

    private LocalDateTime paySuccessTime;

    private LocalDateTime payFailTime;

    private LocalDateTime refundCreateTime;

    private LocalDateTime refundFinishTime;

    private LocalDateTime closeTime;

    private LocalDateTime finishTime;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    private String marks;

    private LocalDateTime orderTime;

    private String detail;
}
